/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */

package cn.hermit.examples.dubbo.consumer.controller;

import cn.hermit.examples.dubbo.api.BookStoreApi;
import cn.hermit.examples.dubbo.dto.BookDto;
import cn.hermit.nio.http.server.rest.annotation.Operation;
import cn.hermit.nio.http.server.rest.annotation.Resource;
import cn.hermit.nio.http.server.rest.annotation.Tag;
import com.alibaba.dubbo.config.annotation.Reference;

import java.util.List;

/**
 * @author JackGao 高建国
 * @description //TODO 设计说明
 * @date 2/6/2017
 */
@Resource(tags=@Tag(name="BookStore"), path = "/bookstore")
public class BootStoreController {

    private BookStoreApi bookStoreApi;


    @Operation(path = "/findAllBooks")
    public List<BookDto> findAllBooks(){
        return bookStoreApi.findAllBooks();
    }
}
